package ar.com.sne.cfg;

import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

public class ConfigurationImg {
	public static String CONFIG_FILE = "sne_img.properties";
	public Properties properties;
	private static ConfigurationImg constantesImg = new ConfigurationImg();

	public String getProperty(String key) {
		return properties.getProperty(key);
	}

	private ConfigurationImg() {
		properties = new Properties();
		try {
			InputStream stream = this.getClass().getClassLoader().getResourceAsStream(CONFIG_FILE);

			properties.load(stream);

		} catch (FileNotFoundException e) {
			System.out.println(e);
			System.exit(4);
		} catch (IOException e) {
		}
	}

	public static ConfigurationImg getInstance() {
		return constantesImg;
	}

}
